<?php

namespace App\Models\Circle;

use App\Models\Posts\WxTag;
use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;

class WxCircleTag extends Model
{
	use HasDateTimeFormatter;


    protected $table = 'wx_circle_tag';

    public function getCircleNameAttribute()
    {
        return WxCircle::where('id', $this->circle_id)->value('circle_name');
    }

    public function getTagNameAttribute()
    {
        return WxTag::where('id', $this->tag_id)->value('tags_name');
    }

}
